import request from '@/utils/request'

export const getZoneList = (Query, name) => {
  return request({
    method: 'GET',
    url: '/api/vm-service/region/search',
    params: { ...Query, name }
  })
}

export const addZoneList = (data) => {
  return request({
    method: 'post',
    url: '/api/vm-service/region',
    data
  })
}

export const removeZoneList = (id) => {
  return request({
    method: 'DELETE',
    url: '/api/vm-service/region/' + id
  })
}

export const reworkZoneList = (id, data) => {
  return request({
    method: 'put',
    url: '/api/vm-service/region/' + id,
    data
  })
}

export const seeZoneList = (regionid) => {
  return request({
    method: 'get',
    url: '/api/vm-service/region/' + regionid
  })
}
